package com.example.service.impl;

import com.example.mapper.plcAlarmSettingMapp;
import com.example.pojo.plcAlarmSettingPojo;
import com.example.service.plcAlarmSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class plcAlarmSettingImpl implements plcAlarmSettingService {
    @Autowired
    private plcAlarmSettingMapp plcAlarmSettingMapp;
    //查询表中所有的数据
    public List<plcAlarmSettingPojo> selectAll(){
        List<plcAlarmSettingPojo> pojos= plcAlarmSettingMapp.selectAll();
        return pojos;
    }
    //在报警信息基础数据表中根据ID号修改一条数据
    public void editOneById(plcAlarmSettingPojo pojo){
        plcAlarmSettingMapp.editOneById(pojo);
    }
}
